

package com.hazelcast.internal.longregister;

import com.hazelcast.spi.impl.NodeEngine;
import com.hazelcast.spi.impl.servicemanager.ServiceDescriptor;
import com.hazelcast.spi.impl.servicemanager.ServiceDescriptorProvider;

public class LongRegisterServiceDescriptorProvider implements ServiceDescriptorProvider {

    @Override
    public ServiceDescriptor[] createServiceDescriptors() {
        return new ServiceDescriptor[]{new LongRegisterServiceDescriptor()};
    }

    private static class LongRegisterServiceDescriptor implements ServiceDescriptor {
        @Override
        public String getServiceName() {
            return LongRegisterService.SERVICE_NAME;
        }

        @Override
        public Object getService(NodeEngine nodeEngine) {
            return new LongRegisterService(nodeEngine);
        }
    }
}
